import request from '@/utils/request'

// 查询用户和供应商关联列表
export function listUsersupply(query) {
  return request({
    url: '/flow/usersupply/list',
    method: 'get',
    params: query
  })
}

// 查询用户和供应商关联详细
export function getUsersupply(userId) {
  return request({
    url: '/flow/usersupply/' + userId,
    method: 'get'
  })
}

// 新增用户和供应商关联
export function addUsersupply(data) {
  return request({
    url: '/flow/usersupply',
    method: 'post',
    data: data
  })
}

// 修改用户和供应商关联
export function updateUsersupply(data) {
  return request({
    url: '/flow/usersupply',
    method: 'put',
    data: data
  })
}

// 删除用户和供应商关联
export function delUsersupply(userId) {
  return request({
    url: '/flow/usersupply/' + userId,
    method: 'delete'
  })
}
